﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>库存界面</title>
<link type="text/css" rel="stylesheet" href="/css/Stock.css"/>
</head>
<body>
<!--顶部开始-->
    <div class="StockTop">
        <div class="StockHead">
            <span>商品入库</span>
        </div>
        <!--提交数据，进行入库开始-->
        <div class="sumit">
        <form id="StockFrom" method="post">
            <div class="StockInput">
                <input type="text" placeholder="请输入订单号" name="orderId" onkeyup="return ValidateNumber($(this),value)">
                <input type="button" value="点击入库" id="test">
            </div>
        </form>
        </div>
        <!--提交数据，进行入库结束-->
        <!--表格部分开始-->
        <div class="middel">
            <table class="table">
                <tr>
                    <th width="10%">编号</th>
                    <th width="22%">商品编号</th>
                    <th width="15%">商品名称</th>
                    <th width="15%">商品单价</th>
                    <th width="15%">商品描述</th>
                    <th width="15%">商品数量</th>
                </tr>

                <tr th:each="t,line : ${placeStock.items}">
                    <td><span th:text="${line.count}"></span></td>
                    <td><span th:text="${t.commodityId}"></span></td>
                    <td><span th:text="${t.name}"></span></td>
                    <td><span th:text="${t.price}"></span></td>
                    <td><span th:text="${t.describes}"></span></td>
                    <td><span th:text="${t.commodityCount}"></span></td>

                </tr>

            </table>
        </div>
        <!--表格部分结束-->
    </div>
<!--顶部结束-->
</body>
<script src="/js/jquery-2.2.1.min.js"></script>
<script src="/js/jump.js"></script>
<script type="text/javascript" th:inline="javascript">
    //提交数据
    $("#test").bind("click",function () {
        if(!confirm("确定入库吗?")) return;
        // toJump("/lookCommodity/Warehousing",$("#StockFrom").serialize());
        location = "/lookCommodity/Warehousing?"+$("#StockFrom").serialize();
    })


</script>
</html>